/*
 * @Autor: dingxiaolin
 * @Date: 2021-06-02 13:12:43
 * @LastEditors: dingxiaolin
 * @LastEditTime: 2021-06-10 10:27:50
 */
import { App } from 'vue'

import { permission } from '@/directives/permission'
import { scrollBar } from '@/directives/scrollBar'

/**
 * 注册全局自定义指令
 * @param app
 */
export function setupDirectives(app: App) {
    app.directive('permission', permission)
    app.directive('scrollBar', scrollBar)
}
